package com.sq.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.sq.springcloud.entities.CommontResult;
import com.sq.springcloud.entities.Payment;

/**
 * @Description: TODO
 * @author: ydy
 * @date: 2022-11-20 10:58
 */
public class CustomerBlockHandler {

    public static CommontResult handlerException(BlockException exception){
        return new CommontResult(4444, "按客戶自定义，global handlerException---1", new Payment(2020L, "serial003"));
    }
    public static CommontResult handlerException2(BlockException exception){
        return new CommontResult(4444, "按客戶自定义，global handlerException---2", new Payment(2020L, "serial003"));
    }
}
